package com.diandian.backend.product.clients;

import com.diandian.backend.product.clients.dto.third.ThirdSkuStockQueryParamDTO;
import com.diandian.backend.product.clients.dto.third.ThirdStoreStockDTO;
import com.diandian.base.boot.starter.response.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("third-exchange")
//@FeignClient(value = "business-diandian-sms", url = "http://localhost:8083", path = "")
public interface DianDianThirdExchangeClient {

    /**
     * 查询SKU库存数据
     */
    @PostMapping(value = "/sku/stock/query")
    BaseResult<ThirdStoreStockDTO> skuStockQuery(@RequestBody ThirdSkuStockQueryParamDTO param) throws Exception;

}
